Optimal. Leaf size=38 \[ -\frac {\left (1-\frac {a^2}{b^2}\right ) \log (a+b \csc (x))}{a}-\frac {\log (\sin (x))}{a}-\frac {\csc (x)}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 38, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {3885, 894} \[ -\frac {\left (1-\frac {a^2}{b^2}\right ) \log (a+b \csc (x))}{a}-\frac {\log (\sin (x))}{a}-\frac {\csc (x)}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 894
Rule 3885
Rubi steps
\begin {align*} \int \frac {\cot ^3(x)}{a+b \csc (x)} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {b^2-x^2}{x (a+x)} \, dx,x,b \csc (x)\right )}{b^2}\\ &=\frac {\operatorname {Subst}\left (\int \left (-1+\frac {b^2}{a x}+\frac {a^2-b^2}{a (a+x)}\right ) \, dx,x,b \csc (x)\right )}{b^2}\\ &=-\frac {\csc (x)}{b}-\frac {\left (1-\frac {a^2}{b^2}\right ) \log (a+b \csc (x))}{a}-\frac {\log (\sin (x))}{a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.05, size = 39, normalized size = 1.03 \[ \frac {\left (a^2-b^2\right ) \log (a \sin (x)+b)+a^2 (-\log (\sin (x)))-a b \csc (x)}{a b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.48, size = 47, normalized size = 1.24 \[ -\frac {a^{2} \log \left (-\frac {1}{2} \, \sin \relax (x)\right ) \sin \relax (x) - {\left (a^{2} - b^{2}\right )} \log \left (a \sin \relax (x) + b\right ) \sin \relax (x) + a b}{a b^{2} \sin \relax (x)} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.65, size = 44, normalized size = 1.16 \[ -\frac {a \log \left ({\left | \sin \relax (x) \right |}\right )}{b^{2}} + \frac {{\left (a^{2} - b^{2}\right )} \log \left ({\left | a \sin \relax (x) + b \right |}\right )}{a b^{2}} - \frac {1}{b \sin \relax (x)} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.38, size = 44, normalized size = 1.16 \[ \frac {a \ln \left (b +a \sin \relax (x )\right )}{b^{2}}-\frac {\ln \left (b +a \sin \relax (x )\right )}{a}-\frac {1}{b \sin \relax (x )}-\frac {a \ln \left (\sin \relax (x )\right )}{b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.31, size = 42, normalized size = 1.11 \[ -\frac {a \log \left (\sin \relax (x)\right )}{b^{2}} + \frac {{\left (a^{2} - b^{2}\right )} \log \left (a \sin \relax (x) + b\right )}{a b^{2}} - \frac {1}{b \sin \relax (x)} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.46, size = 75, normalized size = 1.97 \[ \ln \left (b\,{\mathrm {tan}\left (\frac {x}{2}\right )}^2+2\,a\,\mathrm {tan}\left (\frac {x}{2}\right )+b\right )\,\left (\frac {a}{b^2}-\frac {1}{a}\right )-\frac {\mathrm {tan}\left (\frac {x}{2}\right )}{2\,b}+\frac {\ln \left ({\mathrm {tan}\left (\frac {x}{2}\right )}^2+1\right )}{a}-\frac {1}{2\,b\,\mathrm {tan}\left (\frac {x}{2}\right )}-\frac {a\,\ln \left (\mathrm {tan}\left (\frac {x}{2}\right )\right )}{b^2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\cot ^{3}{\relax (x )}}{a + b \csc {\relax (x )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________